package com.wicket.okrbff.common.enums;

import lombok.Getter;


/**
 * @author ：CHS
 * @since 2023/02/18 13:16
 *
 *
 * @version 1.0
 */
public enum ResponseStateEnum {
    /**
     * 成功
     */
    SUCCESS("success", "0"),
    /**
     * 失败
     */
    FAILURE("failure", "888"),
    /**
     * 警告
     */
    WARNING("warning", "-2"),
    /**
     * 未授权
     */
    UNAUTHORIZED("unauthorized", "401"),
    /**
     * 授权过期
     */
    TOKEN_EXPIRED("tokenexpired", "401"),
    /**
     * 拒绝访问
     */
    DENIED("denied", "403"),
    /**
     * 错误
     */
    ERROR("error", "500");

    @Getter
    private final String text;
    @Getter
    private final String code;

    ResponseStateEnum(String text, String code) {
        this.text = text;
        this.code = code;
    }
}
